home *** CD-ROM | disk | FTP | other *** search
- Path: newsbf02.news.aol.com!not-for-mail
- From: nautilpomp@aol.com (NautilPomp)
- Newsgroups: comp.lang.c++
- Subject: Re: Can someone help me with objects and functions?
- Date: 3 Jan 1996 13:18:31 -0500
- Organization: America Online, Inc. (1-800-827-6364)
- Sender: root@newsbf02.news.aol.com
- Message-ID: <4ceh9n$11k@newsbf02.news.aol.com>
- References: <DKM0M3.AoB@news.zippo.com>
- Reply-To: nautilpomp@aol.com (NautilPomp)
- NNTP-Posting-Host: newsbf02.mail.aol.com
-
- If you have problems, that you can't access object defined in main()
- from another function, than everything is ok, e.g. your object is local in
- main(). You either declare it as global, out of all fns, in the beginning
- of the source, or pass it as parameter to fn where you need to use it.
-
- Sergey
-
- ------ For those who don't like AOL:
- Do not blame AOL for being bad and those who use it, but ask
- yourself: "May be there is nothing else they can use?"
-
- (Koz'ma Prutkov style)
-